gtk3-demo: Fix up toolpalette demo
authorMatthias Clasen <mclasen@redhat.com>
Tue, 13 May 2014 10:15:56 +0000 (06:15 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 13 May 2014 10:26:11 +0000 (06:26 -0400)
The demo appears pretty broken, because some icons are not fitting
well in the grid. Just skip the problematic icons.

demos/gtk-demo/toolpalette.c

index 9accab5d7109bb7ccd038b674c00cf1535173b98..1f5bf9b59ce1a05a0963d9a394ebce90021360f7 100644 (file)
@@ -656,6 +656,9 @@ load_icon_items (GtkToolPalette *palette)
       GtkWidget *group = gtk_tool_item_group_new (context);
       gtk_container_add (GTK_CONTAINER (palette), group);
 
+      if (g_strcmp0 (context, "Animations") == 0)
+        continue;
+
       g_message ("Got context '%s'", context);
       icon_names = gtk_icon_theme_list_icons (icon_theme, context);
       icon_names = g_list_sort (icon_names, (GCompareFunc) strcmp);
@@ -665,6 +668,9 @@ load_icon_items (GtkToolPalette *palette)
           GtkToolItem *item;
           gchar *id = ll->data;
 
+          if (g_strcmp0 (id, "emblem-desktop") == 0)
+            continue;
+
           g_message ("Got id '%s'", id);
 
           item = gtk_tool_button_new (NULL, NULL);